/* 设备信息页面样式 */

/* 设备信息卡片容器 */
.device-info-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

/* 信息卡片样式 */
.info-card {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.info-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3498db, #2980b9);
}

.info-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.info-card h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
    border-bottom: 2px solid #007bff;
    padding-bottom: 8px;
    display: flex;
    align-items: center;
}

/* 图标样式 */
.info-card h3::before {
    margin-right: 12px;
    font-size: 20px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #3498db, #2980b9);
    border-radius: 8px;
    color: white;
}

.device-info h3::before {
    content: "📱";
}

.version-info h3::before {
    content: "🔖";
}

.system-status h3::before {
    content: "💾";
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #f0f0f0;
}

.info-item:last-child {
    border-bottom: none;
}

.info-label {
    font-weight: 500;
    color: #666;
    flex: 0 0 auto;
    margin-right: 15px;
}

.info-value {
    color: #333;
    font-weight: 400;
    text-align: right;
    /* 确保加载状态和正常状态有相同的高度，防止页面跳动 */
    min-height: 1.2em;
    line-height: 1.2em;
    display: inline-flex;
    align-items: center;
    /* 添加衬底色和样式 - 紧凑的padding */
    background-color: #f8f9fa;
    padding: 2px 6px;
    border-radius: 3px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.info-value:hover {
    background-color: #e9ecef;
    border-color: #dee2e6;
}

/* 加载状态样式 */
.info-value.loading {
    color: #007bff;
    font-style: italic;
    min-height: 1.2em;
    line-height: 1.2em;
    background-color: #e3f2fd;
    border-color: #bbdefb;
    animation: pulse 1.5s ease-in-out infinite alternate;
}

@keyframes pulse {
    from {
        background-color: #e3f2fd;
    }
    to {
        background-color: #f3e5f5;
    }
}

/* 错误状态样式 */
.info-value.error-message {
    color: #dc3545;
    font-style: italic;
    min-height: 1.2em;
    line-height: 1.2em;
    background-color: #f8d7da;
    border-color: #f5c6cb;
}

/* 存储空间状态样式 */
.info-value.storage-normal {
    color: #155724;
    background-color: #d4edda;
    border-color: #c3e6cb;
}

.info-value.storage-low {
    color: #721c24;
    background-color: #f8d7da;
    border-color: #f5c6cb;
    font-weight: 600;
}

/* 刷新按钮样式 */
.refresh-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

.refresh-btn::before {
    content: "🔄";
    font-size: 16px;
}

.refresh-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.4);
}

.refresh-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px rgba(0, 123, 255, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .device-info-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .info-card {
        padding: 20px;
    }

    .info-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }

    .info-value {
    }
}

@media (max-width: 480px) {
    .info-card {
        padding: 15px;
    }

    .info-card h3 {
        font-size: 18px;
    }
}
